<!-- forms/wrappers/wrapper.html : Оформление поля (подпись там, etc.) -->

<!-- ====== ОФОРМЛЕНИЕ ПОЛЕЙ ВНУТРИ ГРУПП ====== -->

{{TPL:None}}{{/TPL:None}}

{{:SelectWrapper}}
<fieldset class="select- field-">
	{{@:_Inner}}
</fieldset>
{{/:SelectWrapper}}

{{:TextWrapper}}
<fieldset class="text- field-">
	{{@:_Inner}}
</fieldset>
{{/:TextWrapper}}

{{:CheckboxWrapper}}
<fieldset class="checkbox- field-">
	{{@:_Inner}}
</fieldset>
{{/:CheckboxWrapper}}

{{:TypeSelectorWrapper}}
<fieldset class="checkbox- typeselectorwrapper-">
	<h3>{{wrapper_title}}</h3>
	{{content}}
</fieldset>
{{/:TypeSelectorWrapper}}


{{:FileWrapper}}
<fieldset class="file- field-">
	{{@:_Inner}}
</fieldset>
{{/:FileWrapper}}


{{:TextAreaWrapper}}
<fieldset class="textarea- field-">
	{{@:_Inner}}
</fieldset>
{{/:TextAreaWrapper}}

{{:WysiwygSmallWrapper}}
<fieldset class="wysiwigsmall- field-">
	{{@:_Inner}}
</fieldset>
{{/:WysiwygSmallWrapper}}

{{:WysiwygBigWrapper}}
<fieldset class="wysiwigbig- field-">
	{{@:_Inner}}
</fieldset>
{{/:WysiwygBigWrapper}}


{{:_Inner}}
	<!-- {{params_color}} -->
	<label class="name-">{{wrapper_title}} {{?not_empty}}<span class="nessesary-">*</span>{{/?}}</label>
	{{content}}
	{{?!is_valid}}<div class="errormsg-">{{errors}}</div>{{/?}}
	<div class="description-">{{wrapper_desc}} <!-- Максимум 100 символов --></div>
{{/:_Inner}}

{{:TagsWrapper}}
	{{!connect "tagsuggest.js"}}
	<fieldset class="tags- text- field-">
		<label class="name-">{{wrapper_title}} {{?not_empty}}<span class="nessesary-">*</span>{{/?}}</label>
		{{content}}
		{{?!is_valid}}<div class="errormsg-">{{errors}}</div>{{/?}}
		{{?params_ptags}}
		{{!for params_ptags as="item" do=@:tags_div}}
		{{:tags_div}}
		<div id="tags_for{{item.tdi_oid}}" style="display:none;" class="description-">Рекомендуемые теги{{wrapper_desc}}:
			{{!for item.tags as="tag" do=@:tag_span sep=@:tag_span_sep}}
			{{:tag_span}}<span title="Добавить тег" class="tagsuggest-">{{tag}}</span>{{/:tag_span}}
			{{:tag_span_sep}},&nbsp;{{/:tag_span_sep}}
		</div>
		{{/:tags_div}}
		<div id="tags_for0" style="display:none;" class="description-">&nbsp;</div>
		<script type="text/javascript" language="JavaScript">
		tagsDivList = new Array();
		tagsDivList["0"] = true;
		{{!for params_ptags as="item" do=@:tagsDivList}}
		{{:tagsDivList}}
		tagsDivList["{{item.tdi_oid}}"] = true;
		{{/:tagsDivList}}
		bindTagsDivs();
		</script>
		{{/?}}
	</fieldset>
{{/:TagsWrapper}}

{{:Row}}
 <tr>
   <td class="left- title-">{{wrapper_title}}
    {{@:not_empty}}
   </td>
   <td class="right- content-">
    {{@:content_desc_errors}}
   </td>
  </tr>
{{/:Row}}

<!-- Поле :
     [...................] -->
{{:RowSpan}}
 <tr>
   <td colspan="2" class="wide-">
     <div class="title-">
       {{wrapper_title}}
       {{@:not_empty}}
     </div>
     <div class="content-">
       {{@:content_desc_errors}}
     </div>
   </td>
 </tr>
{{/:RowSpan}}


<!-- //// ВСПОМОГАТЕЛЬНЫЕ БЛОКИ, ВЕЗДЕ ОДИНАКОВЫЕ ///// -------- -->

{{:not_empty}}
  {{?not_empty}}
    <span class="not-empty-">{{*Form.not_empty}}</span>
  {{/?}}
{{/:not_empty}}

{{:content_desc_errors}}
    {{content}}
    {{?is_valid}}
     <div class="desc-">{{wrapper_desc}}</div>
    {{?:}}
     <div class="error-"><strong>{{*Form.invalid}}</strong>{{errors}}</div>
    {{/?}}
{{/:content_desc_errors}}


<!-- ============= ОФОРМЛЕНИЕ ГРУПП И ПОЛЕЙ ВНЕ ГРУПП ======================== -->

{{:Plain}}
	{{content}}
{{/:Plain}}

{{:Div}}
	<div class="field-">
		<div class="title-">{{wrapper_title}}</div>
		<div class="content-">{{@:content_desc_errors}}</div>
	</div>
{{/:Div}}


{{:Group}}
 <div class="group-">
   <div class="group-title-">{{wrapper_title}}</div>
   {{?wrapper_desc}}<div class="group-desc-">{{wrapper_desc}}</div>{{/?}}
   <div class="group-content-">{{content}}</div>
 </div>
{{/:Group}}
